package kr.saeildamil.androidstudy_second.fragment.common;

import kr.saeildamil.andrordstudy.second.R;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class TextFragment extends Fragment {
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View root = inflater.inflate(R.layout.ch20_textfragment, container,false);
		TextView tv = (TextView) root.findViewById(R.id.ch20_textfragment_text);
		tv.setSaveEnabled(true);
/*		LinearLayout root = new LinearLayout(getActivity());
		root.setOrientation(LinearLayout.VERTICAL);
		root.setBackgroundColor(Color.GREEN);
		
		TextView tv = new TextView(getActivity());
		tv.setText("문자열 입력 프래그먼트");
		tv.setEnabled(true);
		
		EditText edit = new EditText(getActivity());
		edit.setBackgroundColor(Color.RED);
		edit.setText("String");
		
		LayoutParams params = new LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
		
		root.addView(tv, params);
		root.addView(edit, params);*/
		
		return root;
	}
}
